﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Xml.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using CarBooker.Controllers;
using System.Drawing;


namespace CarBooker.Models
{
    public class CarDescription
    {
        [Required]
        [DisplayName("Make")]
        public string Make { get; set; }
        [DisplayName("Model")]
        public string Model { get; set; }
        [DisplayName("Year")]
        public string Year { get; set; }
        [DisplayName("Colour")]
        public string Colour { get; set; }

        public override string ToString()
        {
            return Make + " " + Model + " " + Year +" "+ Colour;
        }
    }

    public partial class Car
    {
        static uint prevID;

        public Car(CarDescription description)
        {
            Description = description;
            CarID = prevID + 1;
            prevID = CarID;
        }

        public string DescribeCar()
        {
            return CarID + " " + Description + " :-)";
        }
    }
}